<!DOCTYPE html>
<HTML>
<HEAD>
	<TITLE> ZTREE DEMO - Simple Data</TITLE>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" href="../../../css/demo.css" type="text/css">
	<link rel="stylesheet" href="../../../css/zTreeStyle/zTreeStyle.css" type="text/css">
	<script type="text/javascript" src="../../../js/jquery-1.4.4.min.js"></script>
	<script type="text/javascript" src="../../../js/jquery.ztree.core.js"></script>
	<!--  <script type="text/javascript" src="../../../js/jquery.ztree.excheck.js"></script>
	  <script type="text/javascript" src="../../../js/jquery.ztree.exedit.js"></script>-->
	<SCRIPT type="text/javascript">
		<!--
		var setting = {
			data: {
				simpleData: {
					enable: true
				}
			}
		};

		var zNodes =[
    {
        "id": "1",
        "pId": "1",
        "name": "甘肃农业大学",
        "children": []
    },
    {
        "id": "2",
        "pId": "1",
        "name": "1",
        "children": []
    },
    {
        "id": "2000004538",
        "pId": "1",
        "name": "杨传杰",
        "children": []
    },
    {
        "id": "2000004539",
        "pId": "1",
        "name": "马剑",
        "children": []
    },
    {
        "id": "2000004540",
        "pId": "1",
        "name": "唐文文",
        "children": []
    },
    {
        "id": "2000004541",
        "pId": "1",
        "name": "崔佳佳",
        "children": []
    },
    {
        "id": "2000004544",
        "pId": "1",
        "name": "岳金丽",
        "children": []
    },
    {
        "id": "2000004546",
        "pId": "1",
        "name": "王刚",
        "children": []
    },
    {
        "id": "2000004548",
        "pId": "1",
        "name": "柴雨葳",
        "children": []
    },
    {
        "id": "2000004549",
        "pId": "1",
        "name": "杨宏伟",
        "children": []
    },
    {
        "id": "2000004551",
        "pId": "1",
        "name": "许爱霞",
        "children": []
    },
    {
        "id": "2000004553",
        "pId": "1",
        "name": "李瑞",
        "children": []
    },
    {
        "id": "2000004558",
        "pId": "1",
        "name": "马国源",
        "children": []
    },
    {
        "id": "2000004560",
        "pId": "1",
        "name": "龙海涛",
        "children": []
    },
    {
        "id": "2000004561",
        "pId": "1",
        "name": "姜红",
        "children": []
    },
    {
        "id": "2000004563",
        "pId": "1",
        "name": "李文芳",
        "children": []
    },
    {
        "id": "2000004565",
        "pId": "1",
        "name": "张潇丹",
        "children": []
    },
    {
        "id": "2000004567",
        "pId": "1",
        "name": "张卫娜",
        "children": []
    },
    {
        "id": "2000004568",
        "pId": "1",
        "name": "罗石磊",
        "children": []
    },
    {
        "id": "2000004570",
        "pId": "1",
        "name": "杨丽婧",
        "children": []
    },
    {
        "id": "2000004572",
        "pId": "1",
        "name": "李世娟",
        "children": []
    },
    {
        "id": "2000004574",
        "pId": "1",
        "name": "宋洁",
        "children": []
    },
    {
        "id": "2000004575",
        "pId": "1",
        "name": "戴文渊",
        "children": []
    },
    {
        "id": "2000004579",
        "pId": "1",
        "name": "王永明",
        "children": []
    },
    {
        "id": "2000004581",
        "pId": "1",
        "name": "杨生海",
        "children": []
    },
    {
        "id": "2000004582",
        "pId": "1",
        "name": "郝明超",
        "children": []
    },
    {
        "id": "2000004743",
        "pId": "1",
        "name": "康彩睿",
        "children": []
    },
    {
        "id": "2000004745",
        "pId": "1",
        "name": "贺玉鹏",
        "children": []
    },
    {
        "id": "2000004747",
        "pId": "1",
        "name": "缪平贵",
        "children": []
    },
    {
        "id": "2000004748",
        "pId": "1",
        "name": "宿兵兵",
        "children": []
    },
    {
        "id": "2000004750",
        "pId": "1",
        "name": "马睿",
        "children": []
    },
    {
        "id": "2000004752",
        "pId": "1",
        "name": "张小芳",
        "children": []
    },
    {
        "id": "2000004753",
        "pId": "1",
        "name": "陈卫刚",
        "children": []
    },
    {
        "id": "2000004755",
        "pId": "1",
        "name": "洪旭升",
        "children": []
    },
    {
        "id": "2000004757",
        "pId": "1",
        "name": "祁学红",
        "children": []
    },
    {
        "id": "2000004759",
        "pId": "1",
        "name": "罗红玉",
        "children": []
    },
    {
        "id": "2000004760",
        "pId": "1",
        "name": "韩悌倩",
        "children": []
    },
    {
        "id": "2000004762",
        "pId": "1",
        "name": "廖钰秋",
        "children": []
    },
    {
        "id": "2000004764",
        "pId": "1",
        "name": "王一凡",
        "children": []
    },
    {
        "id": "2000004766",
        "pId": "1",
        "name": "王缠",
        "children": []
    },
    {
        "id": "2000004767",
        "pId": "1",
        "name": "王天",
        "children": []
    },
    {
        "id": "2000004769",
        "pId": "1",
        "name": "车妍",
        "children": []
    },
    {
        "id": "2000004770",
        "pId": "1",
        "name": "宋佳承",
        "children": []
    },
    {
        "id": "2000004771",
        "pId": "1",
        "name": "肖婉君",
        "children": []
    },
    {
        "id": "2000004772",
        "pId": "1",
        "name": "马靖福",
        "children": []
    },
    {
        "id": "2000004773",
        "pId": "1",
        "name": "姬晓颖",
        "children": []
    },
    {
        "id": "2000004774",
        "pId": "1",
        "name": "王娇",
        "children": []
    },
    {
        "id": "2000004776",
        "pId": "1",
        "name": "高瑞平",
        "children": []
    },
    {
        "id": "2000004779",
        "pId": "1",
        "name": "李彦虎",
        "children": []
    },
    {
        "id": "2000004780",
        "pId": "1",
        "name": "高永芳",
        "children": []
    },
    {
        "id": "2000004781",
        "pId": "1",
        "name": "藏磊",
        "children": []
    },
    {
        "id": "2000004782",
        "pId": "1",
        "name": "杨斌",
        "children": []
    },
    {
        "id": "2000004783",
        "pId": "1",
        "name": "张苗",
        "children": []
    },
    {
        "id": "2000004784",
        "pId": "1",
        "name": "魏亚楠",
        "children": []
    },
    {
        "id": "2000004677",
        "pId": "1",
        "name": "王岳云",
        "children": []
    },
    {
        "id": "2000004678",
        "pId": "1",
        "name": "郝建霞",
        "children": []
    },
    {
        "id": "2000004679",
        "pId": "1",
        "name": "王冬冬",
        "children": []
    },
    {
        "id": "2000004681",
        "pId": "1",
        "name": "杨健",
        "children": []
    },
    {
        "id": "2000004682",
        "pId": "1",
        "name": "程子悦",
        "children": []
    },
    {
        "id": "2000004684",
        "pId": "1",
        "name": "邢秀为",
        "children": []
    },
    {
        "id": "2000004686",
        "pId": "1",
        "name": "王全喜",
        "children": []
    },
    {
        "id": "2000004688",
        "pId": "1",
        "name": "郑天",
        "children": []
    },
    {
        "id": "2000004689",
        "pId": "1",
        "name": "李雅娇",
        "children": []
    },
    {
        "id": "2000004691",
        "pId": "1",
        "name": "马引弟",
        "children": []
    },
    {
        "id": "2000004693",
        "pId": "1",
        "name": "周欢",
        "children": []
    },
    {
        "id": "2000004696",
        "pId": "1",
        "name": "刘洋",
        "children": []
    },
    {
        "id": "2000004698",
        "pId": "1",
        "name": "魏万成",
        "children": []
    },
    {
        "id": "2000004700",
        "pId": "1",
        "name": "周刚",
        "children": []
    },
    {
        "id": "2000004701",
        "pId": "1",
        "name": "徐彦瑞",
        "children": []
    },
    {
        "id": "2000004703",
        "pId": "1",
        "name": "李武强",
        "children": []
    },
    {
        "id": "2000004707",
        "pId": "1",
        "name": "李珍",
        "children": []
    },
    {
        "id": "2000004878",
        "pId": "1",
        "name": "罗峰",
        "children": []
    },
    {
        "id": "2000004880",
        "pId": "1",
        "name": "韩晓婧",
        "children": []
    },
    {
        "id": "2000004883",
        "pId": "1",
        "name": "马文馨",
        "children": []
    },
    {
        "id": "2000004884",
        "pId": "1",
        "name": "姚宝辉",
        "children": []
    },
    {
        "id": "2000004886",
        "pId": "1",
        "name": "骆丹丹",
        "children": []
    },
    {
        "id": "2000004888",
        "pId": "1",
        "name": "运向凯",
        "children": []
    },
    {
        "id": "2000004890",
        "pId": "1",
        "name": "顾宗平",
        "children": []
    },
    {
        "id": "2000004891",
        "pId": "1",
        "name": "贺翔",
        "children": []
    },
    {
        "id": "2000004893",
        "pId": "1",
        "name": "何丽娟",
        "children": []
    },
    {
        "id": "2000004895",
        "pId": "1",
        "name": "李琦",
        "children": []
    },
    {
        "id": "2000004897",
        "pId": "1",
        "name": "卫正强",
        "children": []
    },
    {
        "id": "2000004898",
        "pId": "1",
        "name": "吴玉鑫",
        "children": []
    },
    {
        "id": "2000004900",
        "pId": "1",
        "name": "赵思腾",
        "children": []
    },
    {
        "id": "2000004902",
        "pId": "1",
        "name": "辛可启",
        "children": []
    },
    {
        "id": "2000004903",
        "pId": "1",
        "name": "王彪",
        "children": []
    },
    {
        "id": "2000004905",
        "pId": "1",
        "name": "赵国宏",
        "children": []
    },
    {
        "id": "2000004788",
        "pId": "1",
        "name": "马江",
        "children": []
    },
    {
        "id": "2000004791",
        "pId": "1",
        "name": "杨乾",
        "children": []
    },
    {
        "id": "2000004793",
        "pId": "1",
        "name": "何兴芬",
        "children": []
    },
    {
        "id": "2000004796",
        "pId": "1",
        "name": "牛耀星",
        "children": []
    },
    {
        "id": "2000004798",
        "pId": "1",
        "name": "俞力月",
        "children": []
    },
    {
        "id": "2000004800",
        "pId": "1",
        "name": "杨婕",
        "children": []
    },
    {
        "id": "2000004801",
        "pId": "1",
        "name": "宫鹏飞",
        "children": []
    },
    {
        "id": "2000004803",
        "pId": "1",
        "name": "牛见明",
        "children": []
    },
    {
        "id": "2000004805",
        "pId": "1",
        "name": "康文彦",
        "children": []
    },
    {
        "id": "2000004807",
        "pId": "1",
        "name": "梁金博",
        "children": []
    },
    {
        "id": "2000004808",
        "pId": "1",
        "name": "王璐",
        "children": []
    },
    {
        "id": "2000004810",
        "pId": "1",
        "name": "蔺宝军",
        "children": []
    },
    {
        "id": "2000004812",
        "pId": "1",
        "name": "刘军",
        "children": []
    },
    {
        "id": "2000004813",
        "pId": "1",
        "name": "吴鑫泉",
        "children": []
    },
    {
        "id": "2000004815",
        "pId": "1",
        "name": "吴茂东",
        "children": []
    },
    {
        "id": "2000004817",
        "pId": "1",
        "name": "宁改星",
        "children": []
    },
    {
        "id": "2000004819",
        "pId": "1",
        "name": "马丽娟",
        "children": []
    },
    {
        "id": "2000004820",
        "pId": "1",
        "name": "毛震宇",
        "children": []
    },
    {
        "id": "2000004822",
        "pId": "1",
        "name": "牛天航",
        "children": []
    },
    {
        "id": "2000004824",
        "pId": "1",
        "name": "王飞",
        "children": []
    },
    {
        "id": "2000004826",
        "pId": "1",
        "name": "黄登婧",
        "children": []
    },
    {
        "id": "2000004827",
        "pId": "1",
        "name": "金莉",
        "children": []
    },
    {
        "id": "2000004829",
        "pId": "1",
        "name": "张立彭",
        "children": []
    },
    {
        "id": "2000004831",
        "pId": "1",
        "name": "金宁",
        "children": []
    },
    {
        "id": "2000004833",
        "pId": "1",
        "name": "李叶",
        "children": []
    },
    {
        "id": "2000004834",
        "pId": "1",
        "name": "张艳",
        "children": []
    },
    {
        "id": "2000004836",
        "pId": "1",
        "name": "李鸿雁",
        "children": []
    },
    {
        "id": "2000004838",
        "pId": "1",
        "name": "韩尚明",
        "children": []
    },
    {
        "id": "2000004840",
        "pId": "1",
        "name": "樊丽娟",
        "children": []
    },
    {
        "id": "2000004841",
        "pId": "1",
        "name": "徐志鹏",
        "children": []
    },
    {
        "id": "2000004843",
        "pId": "1",
        "name": "李统华",
        "children": []
    },
    {
        "id": "2000004845",
        "pId": "1",
        "name": "李金峰",
        "children": []
    },
    {
        "id": "2000004847",
        "pId": "1",
        "name": "陈宝林",
        "children": []
    },
    {
        "id": "2000004848",
        "pId": "1",
        "name": "郭万里",
        "children": []
    },
    {
        "id": "2000004850",
        "pId": "1",
        "name": "焦亚鹏",
        "children": []
    },
    {
        "id": "2000004852",
        "pId": "1",
        "name": "刘垠霖",
        "children": []
    },
    {
        "id": "2000004854",
        "pId": "1",
        "name": "董莉",
        "children": []
    },
    {
        "id": "2000004583",
        "pId": "1",
        "name": "史颖建",
        "children": []
    },
    {
        "id": "2000004584",
        "pId": "1",
        "name": "翟亚楠",
        "children": []
    },
    {
        "id": "2000004585",
        "pId": "1",
        "name": "曹委",
        "children": []
    },
    {
        "id": "2000004586",
        "pId": "1",
        "name": "章玉微",
        "children": []
    },
    {
        "id": "2000004588",
        "pId": "1",
        "name": "王瑞",
        "children": []
    },
    {
        "id": "2000004590",
        "pId": "1",
        "name": "刘亚丽",
        "children": []
    },
    {
        "id": "2000004591",
        "pId": "1",
        "name": "张敏",
        "children": []
    },
    {
        "id": "2000004592",
        "pId": "1",
        "name": "延桢鸿",
        "children": []
    },
    {
        "id": "2000004593",
        "pId": "1",
        "name": "刘小晴",
        "children": []
    },
    {
        "id": "2000004594",
        "pId": "1",
        "name": "路逸妃",
        "children": []
    },
    {
        "id": "2000004597",
        "pId": "1",
        "name": "罗冰凌",
        "children": []
    },
    {
        "id": "2000004599",
        "pId": "1",
        "name": "郭美娟",
        "children": []
    },
    {
        "id": "2000004601",
        "pId": "1",
        "name": "曾文芳",
        "children": []
    },
    {
        "id": "2000004602",
        "pId": "1",
        "name": "李柘柘",
        "children": []
    },
    {
        "id": "2000004604",
        "pId": "1",
        "name": "刘燕",
        "children": []
    },
    {
        "id": "2000004606",
        "pId": "1",
        "name": "肖海龙",
        "children": []
    },
    {
        "id": "2000004608",
        "pId": "1",
        "name": "华铣泽",
        "children": []
    },
    {
        "id": "2000004609",
        "pId": "1",
        "name": "孙雷雷",
        "children": []
    },
    {
        "id": "2000004611",
        "pId": "1",
        "name": "张飞宇",
        "children": []
    },
    {
        "id": "2000004613",
        "pId": "1",
        "name": "刘玉祯",
        "children": []
    },
    {
        "id": "2000004615",
        "pId": "1",
        "name": "纪童",
        "children": []
    },
    {
        "id": "2000004616",
        "pId": "1",
        "name": "孙金金",
        "children": []
    },
    {
        "id": "2000004618",
        "pId": "1",
        "name": "童长春",
        "children": []
    },
    {
        "id": "2000004620",
        "pId": "1",
        "name": "吴召林",
        "children": []
    },
    {
        "id": "2000004622",
        "pId": "1",
        "name": "吴勇",
        "children": []
    },
    {
        "id": "2000004623",
        "pId": "1",
        "name": "陈永岗",
        "children": []
    },
    {
        "id": "2000004625",
        "pId": "1",
        "name": "白云鹏",
        "children": []
    },
    {
        "id": "2000004630",
        "pId": "1",
        "name": "吴万成",
        "children": []
    },
    {
        "id": "2000004632",
        "pId": "1",
        "name": "雷秦袆",
        "children": []
    },
    {
        "id": "2000004634",
        "pId": "1",
        "name": "张博",
        "children": []
    },
    {
        "id": "2000004635",
        "pId": "1",
        "name": "高良霜",
        "children": []
    },
    {
        "id": "2000004637",
        "pId": "1",
        "name": "车彦卓",
        "children": []
    },
    {
        "id": "2000004639",
        "pId": "1",
        "name": "万敏艳",
        "children": []
    },
    {
        "id": "2000004641",
        "pId": "1",
        "name": "田宏山",
        "children": []
    },
    {
        "id": "2000004642",
        "pId": "1",
        "name": "魏佳钰",
        "children": []
    },
    {
        "id": "2000004644",
        "pId": "1",
        "name": "罗志成",
        "children": []
    },
    {
        "id": "2000004646",
        "pId": "1",
        "name": "李仕杰",
        "children": []
    },
    {
        "id": "2000004647",
        "pId": "1",
        "name": "彭有胜",
        "children": []
    },
    {
        "id": "2000004649",
        "pId": "1",
        "name": "火兴民",
        "children": []
    },
    {
        "id": "2000004651",
        "pId": "1",
        "name": "白雪峰",
        "children": []
    },
    {
        "id": "2000004654",
        "pId": "1",
        "name": "李海江",
        "children": []
    },
    {
        "id": "2000004656",
        "pId": "1",
        "name": "马悦",
        "children": []
    },
    {
        "id": "2000004658",
        "pId": "1",
        "name": "韩金辉",
        "children": []
    },
    {
        "id": "2000004660",
        "pId": "1",
        "name": "李琛琛",
        "children": []
    },
    {
        "id": "2000004661",
        "pId": "1",
        "name": "史冬雪",
        "children": []
    },
    {
        "id": "2000004663",
        "pId": "1",
        "name": "黄海翔",
        "children": []
    },
    {
        "id": "2000004665",
        "pId": "1",
        "name": "贺健",
        "children": []
    },
    {
        "id": "2000004666",
        "pId": "1",
        "name": "张阳阳",
        "children": []
    },
    {
        "id": "2000004667",
        "pId": "1",
        "name": "张生英",
        "children": []
    },
    {
        "id": "2000004668",
        "pId": "1",
        "name": "李涛善",
        "children": []
    },
    {
        "id": "2000004669",
        "pId": "1",
        "name": "蒋成辉",
        "children": []
    },
    {
        "id": "2000004670",
        "pId": "1",
        "name": "蒋仁新",
        "children": []
    },
    {
        "id": "2000004671",
        "pId": "1",
        "name": "李元曦",
        "children": []
    },
    {
        "id": "2000004672",
        "pId": "1",
        "name": "孙阳",
        "children": []
    },
    {
        "id": "2000004673",
        "pId": "1",
        "name": "张静思",
        "children": []
    },
    {
        "id": "2000004674",
        "pId": "1",
        "name": "任珂",
        "children": []
    },
    {
        "id": "2000004675",
        "pId": "1",
        "name": "赵润",
        "children": []
    },
    {
        "id": "2000004676",
        "pId": "1",
        "name": "杨亚雯",
        "children": []
    },
    {
        "id": "2000004627",
        "pId": "1",
        "name": "杨磊",
        "children": []
    },
    {
        "id": "2000004628",
        "pId": "1",
        "name": "石学红",
        "children": []
    }
];

		$(document).ready(function(){
			$.fn.zTree.init($("#treeDemo"), setting, zNodes);
		});
		//-->
	</SCRIPT>
 </HEAD>

<BODY>
<h1>最简单的树 -- 简单 JSON 数据</h1>
<h6>[ 文件路径: core/simpleData.html ]</h6>
<div class="content_wrap">
	<div class="zTreeDemoBackground left">
		<ul id="treeDemo" class="ztree"></ul>
	</div>
	<div class="right">
		<ul class="info">
			<li class="title"><h2>1、setting 配置信息说明</h2>
				<ul class="list">
				<li class="highlight_red">必须设置 setting.data.simple 内的属性，详细请参见 API 文档中的相关内容</li>
				<li>与显示相关的内容请参考 API 文档中 setting.view 内的配置信息</li>
				<li>name、children、title 等属性定义更改请参考 API 文档中 setting.data.key 内的配置信息</li>
				</ul>
			</li>
			<li class="title"><h2>2、treeNode 节点数据说明</h2>
				<ul class="list">
				<li class="highlight_red">简单模式的 JSON 数据需要使用 id / pId 表示节点的父子包含关系，如使用其他属性设置父子关联关系请参考 setting.data.simple 内各项说明
				<div><pre xmlns=""><code>例如：
var nodes = [
	{id:1, pId:0, name: "父节点1"},
	{id:11, pId:1, name: "子节点1"},
	{id:12, pId:1, name: "子节点2"}
];</code></pre></div></li>
				<li>默认展开的节点，请设置 treeNode.open 属性</li>
				<li>无子节点的父节点，请设置 treeNode.isParent 属性</li>
				<li>其他属性说明请参考 API 文档中 "treeNode 节点数据详解"</li>
				</ul>
			</li>
			<li class="title"><h2>3、其他说明</h2>
				<ul class="list">
				<li>Demo 中绝大部分都采用简单 JSON 数据模式，以便于大家学习</li>
				</ul>
			</li>
		</ul>
	</div>
</div>
</BODY>
</HTML>